import request from '@/utils/request'

// 查询住院费用inp_bill_detail列表 (分页)
export function selectPageInpBillDetail(query) {
    return request({
        url: '/business/inpBillDetail/selectPage',
        method: 'get',
        params: query
    })
}

// 按项目名称汇总查看 (分页)
export function groupByItemName(query) {
    return request({
        url: '/business/inpBillDetail/groupByItemName',
        method: 'get',
        params: query
    })
}

// 查询住院费用inp_bill_detail列表 (不分页)
export function listInpBillDetail(query) {
    return request({
        url: '/business/inpBillDetail/list',
        method: 'get',
        params: query
    })
}

//  护士退费页面列表(不分页)
export function refundQueryList(query) {
    return request({
        url: '/business/inpBillDetail/refundQueryList',
        method: 'get',
        params: query
    })
}

// 查询住院药品退药申请列表 (不分页)
export function listDrugRepercussion(query) {
    return request({
        url: '/business/inpBillDetail/listDrugRepercussion',
        method: 'get',
        params: query
    })
}

// 根据住院费用分类进行分组合计金额
export function selectGroupByClassOnInp(query) {
    return request({
        url: '/business/inpBillDetail/selectGroupByClassOnInp',
        method: 'get',
        params: query
    })
}

// 查询住院费用inp_bill_detail详细
export function getInpBillDetail(inpBillDetailId) {
    return request({
        url: '/business/inpBillDetail/' + inpBillDetailId,
        method: 'get'
    })
}

// 新增住院费用inp_bill_detail
export function addInpBillDetail(data) {
    return request({
        url: '/business/inpBillDetail',
        method: 'post',
        data: data
    })
}
// v
export function addNurseBillDetail(data) {
    return request({
        url: '/business/inpBillDetail/addNurseBillDetail',
        method: 'post',
        data: data
    })
}

// 退费确认
export function refundItemListOk(data) {
    return request({
        url: '/business/inpBillDetail/refundItemListOk',
        method: 'post',
        data: data
    })
}

// 修改住院费用inp_bill_detail
export function updateInpBillDetail(data) {
    return request({
        url: '/business/inpBillDetail',
        method: 'put',
        data: data
    })
}

// 删除住院费用inp_bill_detail
export function delInpBillDetail(inpBillDetailId) {
    return request({
        url: '/business/inpBillDetail/' + inpBillDetailId,
        method: 'delete'
    })
}
